I'm using ngModel for textarea, and I wish to enable and disable textarea based on condition. I binded in right way and the value also changing to [attr.disabled]="false", but the field not enabling.
<textarea pInputTextarea
[attr.disabled]="condition"
[(ngModel)]="echangesInternesNotes"
(ngModelChange)="onEchangesInternesNotesChange()"></textarea>
I just found the problem, sometimes even a small glitch make us sick, I used [attr.disabled] in my code, so it is not working. I changed to [disabled] and now it is working.
<textarea pInputTextarea
[disabled]="condition"
[(ngModel)]="echangesInternesNotes"
(ngModelChange)="onEchangesInternesNotesChange()"></textarea>